package com.example.userservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "order-service")
public interface OrderFeignClient {
    @GetMapping("/orders/user/{userId}")
    String getOrdersByUserId(@PathVariable("userId") Long userId);
}    